<?php

define('NUSER', 105);

require_once '../pre_include.php';
require_once $includes_path . 'user.php';
$db->delete_item('users');

for ($i = 1; $i <= NUSER; $i ++)
{
	$db->insert_into('users', 
		array(
			'username' => "user $i",
			'realname' => "realname $i",
			'nickname' => "nickname $i",
			'passwd' => "passwd $i",
			'salt' => "salt $i",
			'aid' => rand(1, 2),
			'email' => "email $i",
			'self_desc' => "self_desc $i",
			'plang' => rand(1, 3),
			'wlang' => rand(1, 2),
			'view_gid' => json_encode(array(GID_ALL)),
			'tid' => 1,
			'reg_time' => time(),
			'reg_ip' => '127.0.0.1',
			'last_login_time' => time(),
			'last_login_ip' => '127.0.0.1',
			'ac_ratio' => rand(1, 10000)
		)
	);
}
